package com.sg.dto.biz.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffCycleTypeInstanceRelationshipDto
 * @使用场景
 */
@Data
public class BffCycleTypeInstanceRelationshipDto implements Serializable {

    /**
     * 工作周期类型关系ID
     */
    @ApiModelProperty("工作周期类型关系ID")
    private String cycleRelationshipId;

    /**
     * 关联父工作周期类型标识
     */
    @ApiModelProperty("关联父工作周期类型标识")
    private String relationCycleTypeCode;

    /**
     * 周期类型标准化 STANDARD:普通标准 CUSTOM_STANDARD:自定义标准 IRREGULAR:不规则
     */
    @ApiModelProperty("周期类型标准化")
    private String cycleTypeStandard;

    /**
     * 子工作周期数量
     */
    @ApiModelProperty("子工作周期数量")
    private Long subCycleNumber;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isInterim;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 周期类型名称
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;
    /**
     * 关联父周期类型ID
     */
    @ApiModelProperty("关联父周期类型ID")
    private String parentCycleTypeId;

    /**
     * 父周期类型标准化 STANDARD:普通标准 CUSTOM_STANDARD:自定义标准 IRREGULAR:不规则
     */
    @ApiModelProperty("父周期类型标准化")
    private String parentCycleTypeStandard;

    /**
     * 关联父周期类型名称
     */
    @ApiModelProperty("关联父周期类型名称")
    private String parentCycleTypeName;
    /**
     * 子周期类型ID
     */
    @ApiModelProperty("子周期类型ID")
    private String subCycleTypeId;

    /**
     * 子周期类型标识
     */
    @ApiModelProperty("子周期类型标识")
    private String subCycleTypeCode;

    /**
     * 子周期类型标准化 STANDARD:普通标准 CUSTOM_STANDARD:自定义标准 IRREGULAR:不规则
     */
    @ApiModelProperty("子周期类型标准化")
    private String subCycleTypeStandard;

    /**
     * 子周期类型名称
     */
    @ApiModelProperty("子周期类型名称")
    private String subCycleTypeName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCycleTypeInstanceRelationshipDto that = (BffCycleTypeInstanceRelationshipDto) o;
        return cycleRelationshipId == that.cycleRelationshipId && relationCycleTypeCode == that.relationCycleTypeCode && cycleTypeStandard == that.cycleTypeStandard && subCycleNumber == that.subCycleNumber && isInterim == that.isInterim && isArchive == that.isArchive && subjectLifeCycle == that.subjectLifeCycle && cycleTypeName == that.cycleTypeName && parentCycleTypeId == that.parentCycleTypeId && parentCycleTypeStandard == that.parentCycleTypeStandard && parentCycleTypeName == that.parentCycleTypeName && subCycleTypeId == that.subCycleTypeId && subCycleTypeCode == that.subCycleTypeCode && subCycleTypeStandard == that.subCycleTypeStandard && subCycleTypeName == that.subCycleTypeName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleRelationshipId, relationCycleTypeCode, cycleTypeStandard, subCycleNumber, isInterim, isArchive, subjectLifeCycle, cycleTypeName, parentCycleTypeId, parentCycleTypeStandard, parentCycleTypeName, subCycleTypeId, subCycleTypeCode, subCycleTypeStandard, subCycleTypeName);
    }


}
   